package com.myosw.dao;

import com.myosw.jdbc.common.QueryHelper;
import com.myosw.pojo.Nutchlog;

public class NutchlogDao 
{
	public int[] save(Object[][]  params)
	{
		String sql = "INSERT INTO myosw_nutchlog(urls,total,newcount,time) VALUES(?,?,?,?)";
		return QueryHelper.batch(sql , params);
	}
	
	/**
	 * 
	 * @param nutchlog
	 * @return
	 */
	public boolean save(Nutchlog nutchlog)
	{
		return nutchlog.save()>0?true:false;
	}
	
	
}
